/*
 * Copyright 2020 www.mytijian.com All right reserved. This software is the
 * confidential and proprietary information of www.mytijian.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with www.mytijian.com.
 */
package com.mytijian.task.client.examiner;

import com.mytijian.account.dto.BatchImportCustomerDTO;
import com.mytijian.account.model.FileAccountImportInfo;
import com.mytijian.task.task.step.DataReader;

import java.util.ArrayList;
import java.util.List;

public class ExaminerDataReader implements DataReader<List<FileAccountImportInfo>, BatchImportCustomerDTO> {
    @Override
    public List<FileAccountImportInfo> reader(BatchImportCustomerDTO importCustomerDTO) {
        List<FileAccountImportInfo> fileAccountImportInfos = new ArrayList<>();
        fileAccountImportInfos.add(buildFileAccountImportInfo("1", "李四"));
        fileAccountImportInfos.add(buildFileAccountImportInfo("2", "张三"));
        return fileAccountImportInfos;
    }
    private FileAccountImportInfo buildFileAccountImportInfo(String id, String name ) {
        FileAccountImportInfo fileAccountImportInfo = new FileAccountImportInfo();
        fileAccountImportInfo.setName(name);
        fileAccountImportInfo.setId(id);
        return fileAccountImportInfo;
    }
}
